PATHMac OS 8 and 9 Developer Documentation > Interapplication Communication > AppleScript for Scripters >

AppleScript Language Guide

   

Script Properties

A script property is a labeled container for a value that you can use in much the same way you use a variable. The value of a script property persists until you recompile the script that contains it, and you can easily set the property's initial value without resetting it each time the script is run. You can accomplish the same thing with a global variable, but it is usually more convenient to use a property for this purpose.

The following sections provide information on script properties:

Note

The description of script properties provided here assumes that you are using the Script Editor application supplied with AppleScript. Other script editors might not support persistence of script properties. If you are using a different script editor, check its documentation to see how it handles script properties.


© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)